﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="product_comment.aspx.cs"
    Inherits="V5_EShop._Template.Default.product_comment" EnableEventValidation="false"
    ViewStateEncryptionMode="Never" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>评论管理</title>
</head>
<body>
    <asp:MultiView ID="MultiViewList" runat="server">
        <asp:View ID="View1" runat="server">
            <form id="form2" runat="server">
            <asp:Repeater ID="rpList" runat="server">
                <ItemTemplate>
                        评论内容:<%#DataBinder.Eval(Container.DataItem, "CommentContent")%><br />
                        评价:<%#DataBinder.Eval(Container.DataItem, "Pmost")%>星<br />
                        回复内容:<%#DataBinder.Eval(Container.DataItem, "ReplyComment")%>
                </ItemTemplate>
            </asp:Repeater>
            <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到">
            </webdiyer:AspNetPager>
            </form>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <form id="form1" action="/product/recomment.aspx?lhpid=<%=pid %>&laction=savecomment"
            method="post">
            <table id="EditTable" cellpadding="0" cellspacing="1">
                <tr>
                    <td colspan="2">
                        商品评论
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        内容
                    </td>
                    <td>
                        <textarea id="txtpCommentContent" cols="20" rows="2" name="txtpCommentContent"></textarea>
                    </td>
                </tr>
                <tr>
                    <td>
                        Email
                    </td>
                    <td>
                        <input id="txtpCommentEmail" type="text" name="txtpCommentEmail" />
                    </td>
                </tr>
                <tr>
                    <td>
                        名字
                    </td>
                    <td>
                        &nbsp;
                        <input id="txtpCommentUserName" name="txtpCommentUserName" type="text" />
                    </td>
                </tr>
                <tr>
                    <td>
                        选择星级
                    </td>
                    <td>
                        &nbsp;
                        <select id="ddlpmost" name="ddlpmost">
                            <option value="0">选择星级</option>
                            <option value="5">5</option>
                            <option value="4">4</option>
                            <option value="3">3</option>
                            <option value="2">2</option>
                            <option value="1">1</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <input id="Submit1" type="submit" value="发表品论" />
                    </td>
                </tr>
            </table>
            </form>
        </asp:View>
    </asp:MultiView>
</body>
</html>
